<template>
  <div class="home-banner">
    <!-- 轮播图 -->
    <XtxSlider :sliders="bannerList" />
  </div>
</template>

<script>
import { useBanner } from '../server.js'
export default {
  name: 'HomeBanner',
  setup() {
    const bannerList = useBanner()
    return { bannerList }
  }
}
</script>
<style scoped lang="less">
.home-banner {
  width: 1240px;
  height: 450px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
